package SingleIinkSentinel;

public class Text1 {
    public static void main(String[] args) {
        SingleLists singleLists = new SingleLists();
        System.out.println("----------------------");
        singleLists.addLast(1);
        singleLists.addLast(2);
        singleLists.addLast(3);
        singleLists.addLast(4);
        singleLists.addLast(5);
        singleLists.myForEach(System.out::println);
        System.out.println("---------------------");
        //System.out.println(singleLists.get(10));
        singleLists.insert(0,6);
        singleLists.myForEach(System.out::println);
        System.out.println("-----------------------");
        singleLists.remove(3);
        singleLists.myForEach(System.out::println);

/*        singleLists.addFirst(1);
        singleLists.addFirst(2);
        singleLists.addFirst(3);
        singleLists.addFirst(4);
        singleLists.addFirst(5);
        singleLists.myPrint();
        System.out.println("-------------------");
        singleLists.myForEach(System.out::println);
        System.out.println("--------------------");
        for (Integer singleList : singleLists) {
            System.out.println(singleList);
        }*/
    }
}
